package com.zzyl;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.EnableScheduling;

import javax.annotation.PostConstruct;

@SpringBootApplication
public class ZzylApplication implements ApplicationListener<ApplicationStartedEvent>, ApplicationRunner, CommandLineRunner {


	public static void main(String[] args) {
		SpringApplication.run(ZzylApplication.class, args);
	}

	@PostConstruct
	public void init() {
		System.err.println("你他妈的在狗叫什么");
	}


	@Override
	public void onApplicationEvent(ApplicationStartedEvent event) {
		System.err.println("我上早八");
	}

	@EventListener(ApplicationStartedEvent.class)
	public void start() {
		System.err.println("你打我我打你又怎么样");
	}

	@Override
	public void run(ApplicationArguments args) throws Exception {
		System.err.println("cnmd");
	}

	@Override
	public void run(String... args) throws Exception {
		System.err.println("fuck  you");
	}
}
